package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.FamilyMember;
import com.zzyl.nursing.dto.*;
import com.zzyl.nursing.dto.MemberElderDto;
import com.zzyl.nursing.vo.FamilyMemberElderVo;
import com.zzyl.nursing.vo.DeviceDataGraphVo;
import com.zzyl.nursing.vo.LoginVo;
import com.zzyl.nursing.vo.MemberElderVo;

import java.util.List;

/**
 * 老人家属Service接口
 *
 * @author ruoyi
 * @date 2024-09-19
 */
public interface IFamilyMemberService extends IService<FamilyMember> {

    /**
     * 小程序登录
     *
     * @param dto
     * @return
     */
    LoginVo login(UserLoginRequestDto dto);

    /**
     * 绑定家人
     */
    void bindingFamily(MemberElderDto memberElderDto);

    /**
     * 查询家人列表
     * @return
     */
    List<FamilyMemberElderVo> selectFamily();

    /**
     * 分页查看已绑定家人列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<MemberElderVo> pageSelectFamily(Integer pageNum, Integer pageSize);


    /**
     * 查询健康数据
     *
     * @param memberDeviceDto
     * @return
     */
    MemberDeviceVO queryDevicePropertyStatus(MemberDeviceDto memberDeviceDto);
    /**
     * 按日统计查询指标数据
     *
     * @param timeQueryDto
     * @return
     */
    List<DeviceDataGraphVo> queryDeviceDataListByDay(DayTimeQueryDto timeQueryDto);

    /**
     * 按周统计查询指标数据
     *
     * @param timeQueryDto
     * @return
     */
    List<DeviceDataGraphVo> queryDeviceDataListByWeek(DayTimeQueryDto timeQueryDto);

}
